import Cookies from 'js-cookie'

const TokenKey = 'lww_vue_project' //保证唯一
const TimeKey='lww_vue_time'  //保证唯一

/* ==========token=============*/
export function getToken() {  //获取token
  return Cookies.get(TokenKey)
}

export function setToken(token) {  //设置token
  return Cookies.set(TokenKey, token)
}

export function removeToken() {   //删除token
  return Cookies.remove(TokenKey)
}

/*========imekey============*/


// 获取时间戳
export function getTimeStamp() {
  return Cookies.get(TimeKey)
}
// 设置时间戳
export function setTimeStamp() {
  Cookies.set(TimeKey, Date.now())
}
